const goods = {
	state: {
		detailPopState: false,
		proSpecsState: false,
		detailData: {}
	},
	mutations: {
		// 设置详情页弹出层
		set_detail_popstate(state, value) {
			state.detailPopState = value
		},
		set_detail_data(state, value) {
			value.description = value.description.replace(/\n/g, '<br>')
			state.detailData = value
		},
		// 设置规格弹出层
		set_pro_specs(state, value) {
			state.proSpecsState = value
		}
	},
	actions: {

	}
}

export default goods;